<template>
    <div id="app">
        <nav>
            <router-link to="/" >Home</router-link> |
            <router-link to="/goapi" @click="getRoutePath(this)">Test Api</router-link> |

        </nav>
        <main>
            <h1>Router View</h1>
            <router-view></router-view></main>
    </div>
</template>

<script>

    export default {

    }


</script>

<style>

    #app {
        max-width: 800px;
        margin: 0 auto;
        line-height: 1.4;
        font-family: 'Avenir', Helvetica, Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        color: midnightblue;
    }

    h1 {
        text-align: center;
    }
</style>